package name.fuhan.shipin;

import java.io.Serializable;


import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.WindowManager;
import android.widget.LinearLayout;

public class ShowShiPinActivity extends Activity {

	private ViewGroup parent;
	private LinearLayout inflate;
	private ShiPinView shipin;
	private int 进度;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		inflate = (LinearLayout) View.inflate(this, R.layout.activity_show_shi_pin, null);
		setContentView(inflate);
		WindowManager wm = (WindowManager)getSystemService(Context.WINDOW_SERVICE);
		
		int windowWidth = wm.getDefaultDisplay().getWidth();
		int windowHeight = wm.getDefaultDisplay().getHeight();
		Intent intent = getIntent();
		
		进度 = intent.getIntExtra("jindu", 0);
		shipin = (ShiPinView) inflate.findViewById(R.id.acticity_showshipin_shipin);
		shipin.setAddress(intent.getStringExtra("imageAddress"), intent.getStringExtra("videoAddress"), null, windowWidth, windowHeight,-1);
		shipin.当前横屏 = true;
	}
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		return super.onKeyDown(keyCode, event);
	}
}
